package com.basic.system.service.impl;

import javax.annotation.Resource;

import com.basic.common.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.basic.system.domain.SysNotice;
import com.basic.system.mapper.SysNoticeMapper;
import com.basic.system.service.ISysNoticeService;

/**
 * 公告 服务层实现
 * 
 * @author zhaoxy_jn@163.com
 */
@Service
public class SysNoticeServiceImpl extends BaseServiceImpl<SysNoticeMapper,SysNotice> implements ISysNoticeService
{
    @Resource
    private SysNoticeMapper noticeMapper;

    @Override
    public int updateStatusByIds(String[] ids, String status) {
        return noticeMapper.updateStatusByIds(ids, status);
    }

    @Override
    public boolean isExistPublishedNotice(String id) {
        return noticeMapper.isExistPublishedNotice(id) > 0;
    }

    @Override
    public SysNotice getPublishedNotice() {
        return noticeMapper.getPublishedNotice();
    }
}
